package learn_design_patterns.c3.condiment;

import learn_design_patterns.c3.Beverage;
import learn_design_patterns.c3.CondimentDecorator;

/**
 * 调味品-摩卡
 * 
 * @author zhangchen
 *
 */
public class Mocha extends CondimentDecorator {
	private Beverage beverage;

	public Mocha(Beverage beverage) {
		this.beverage = beverage;
	}

	@Override
	public String getDesc() {
		return beverage.getDesc() + ", Mocha";
	}

	@Override
	public double cost() {
		return .2 + beverage.cost();
	}

}
